package com.cz.video.website.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * <p>
 * 收藏夹表
 * </p>
 *
 * @author yr
 * @since 2023-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_collect_folder")
@Schema(description="收藏夹表")
public class WebsiteCollectFolder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "collect_folder_id")
    private Long collectFolderId;

    @Schema( description = "用户的id")
    private Long userId;

    @Schema( description = "收藏夹名称")
    @Length(max=32,message = "最大长度不能超过{max}字符")
    private String name;

    @Schema( description = "状态")
    private String status;

    @TableLogic
    @Schema( description = "删除标记")
    private String delFlag;

}
